package com.ai.entity.server;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据库交互对象
 *
 * @author Mr.Chen
 * @since 2020-06-17
 */
@Data
@TableName("server")
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ServerPO extends Model<ServerPO> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键,主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "代号（备用主键）")
    private String code;

    @ApiModelProperty(value = "服务器名")
    private String nickname;

    @ApiModelProperty(value = "服务器帐号")
    private String username;

    @ApiModelProperty(value = "服务器密码")
    private String password;

    @ApiModelProperty(value = "服务器IP")
    private String ip;

    @ApiModelProperty(value = "服务器端口号")
    private Integer port;

    @ApiModelProperty(value = "最大同时开启数量")
    private Integer maxNum;

    @ApiModelProperty(value = "状态(1.开，2.关，-1.弃用)")
    private Integer state;

    @ApiModelProperty(value = "部门ID")
    private Integer departmentId;

    @ApiModelProperty(value = "数据添加时间")
    private Date createTime;

    @ApiModelProperty(value = "数据修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "音频文件存储位置")
    private String audioUrl;

}
